import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex);

const store = new Vuex.Store({  
	
    state: {  
        weixin:{
        	openid:'111'
        }, 
    },  
    mutations: {  
		setOpenid(state,openid){
			state.weixin.openid = openid
		},
		getOpenid(state){
			return state.weixin.openid;
		},
        login(state, provider) {  
            
        },  
        logout(state) {  
            
        }  
    }  
})  

export default store